﻿<UserControl x:Class="Prototypes.AllComplaints"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="550" d:DesignWidth="900">
    <UserControl.Resources>
        <ContextMenu x:Key="contextMenu">
            <MenuItem Header="Ver Denuncia" Click="ViewComplaint_Click"/>
            <MenuItem Header="Editar Denuncia" Click="EditCopmlaint_Click" />
            <MenuItem Header="Informe Psicologico" Foreground="White" Click="MenuItem_Click"></MenuItem>
            <MenuItem Header="Reporte Médico" Foreground="White" Click="MenuItem2_Click"></MenuItem>
            <MenuItem Header="Registro de Declaraciones" Foreground="White" Click="MenuItem3_Click"></MenuItem>
            <MenuItem Header="Reporte de Audiencia" Foreground="White" Click="MenuItem4_Click"></MenuItem>
        </ContextMenu>
    </UserControl.Resources>
    <Grid Name="Content">
        <Grid Height="36" Margin="11,11,56,0" Name="gridTitle"  VerticalAlignment="Top">
            <Border BorderBrush="#bababa" BorderThickness="0,0,0,1">
                <TextBlock FontSize="24" FontWeight="ExtraLight" Text="Ver Todas las Denuncias" Width="711" HorizontalAlignment="Left" ></TextBlock>
            </Border>
        </Grid>
        <Grid Margin="0,35,0,0">
            <ListView Width="830" Height="430" Name="listViewComplaints" ItemsSource="{Binding}" ItemContainerStyle="{DynamicResource ListViewItemContainerStyle}" Margin="25,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                <ListView.View>
                    <GridView>
                        <GridViewColumn CellTemplate="{StaticResource VictimItemTemplate}" Width="230" Header="Víctima"/>
                        <GridViewColumn CellTemplate="{StaticResource AggressorItemTemplate}" Width="230" Header="Agresor" />
                        <GridViewColumn CellTemplate="{StaticResource InformerItemTemplate}" Width="230" Header="Denunciante" />
                        <GridViewColumn CellTemplate="{StaticResource DetailsItemTemplate}" Width="140" Header="Detalles" />
                    </GridView>
                </ListView.View>
                <ListView.ContextMenu>
                    <ContextMenu >
                        <MenuItem Header="Ver Denuncia" Click="ViewComplaint_Click"/>
                        <MenuItem Header="Editar Denuncia" Click="EditCopmlaint_Click"/>
                        <MenuItem Header="Informe Psicologico">
                            <MenuItem Header="Registrar" Click="MenuItem_Click"></MenuItem>
                            <MenuItem Header="Ver Informes" Click="ViewPsico_Click"></MenuItem>
                            <MenuItem Header="Modificar" IsEnabled="False"></MenuItem>
                        </MenuItem>
                        <MenuItem Header="Reporte Médico" >
                            <MenuItem Header="Registrar" Click="MenuItem2_Click"></MenuItem>
                            <MenuItem Header="Ver" IsEnabled="False" ></MenuItem>
                            <MenuItem Header="Modificar" IsEnabled="False"></MenuItem>
                        </MenuItem>
                        <MenuItem Header="Registro de Declaraciones">
                            <MenuItem Header="Registrar" Click="MenuItem3_Click"></MenuItem>
                            <MenuItem Header="Ver" IsEnabled="False"></MenuItem>
                            <MenuItem Header="Modificar" IsEnabled="False"></MenuItem>
                        </MenuItem>
                        <MenuItem Header="Reporte de Audiencia">
                            <MenuItem Header="Registrar" Click="MenuItem4_Click"></MenuItem>
                            <MenuItem Header="Ver" IsEnabled="False"></MenuItem>
                            <MenuItem Header="Modificar" IsEnabled="False"></MenuItem>
                        </MenuItem>
                    </ContextMenu>
                </ListView.ContextMenu>
            </ListView>
        </Grid>
    </Grid>
</UserControl>
